package com.gopay.common.core.cps.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.core.cps.CpsTransPayChannelDAO;
import com.gopay.common.domain.cps.CpsTransPayChannel;

/**
 * 
 * @CpsTransPayChannelDAOImpl.java
 * @author liujy
 * @2013-8-22 下午2:47:44  www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("cpsTransPayChannelDAO")
public class CpsTransPayChannelDAOImpl extends BaseDAOImpl<CpsTransPayChannel, Serializable> implements CpsTransPayChannelDAO{

    
    @Override
    public  List<CpsTransPayChannel> findRelsByIntTxnCd(String intTxnCd){
        String hql = "from CpsTransPayChannel c where c.gopayIntTxnCd=:gopayIntTxnCd";
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("gopayIntTxnCd", intTxnCd);
        return findByHql(hql, param);
    }
}